﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ResultFileUpload.aspx.cs" Inherits="HealthSystem.ResultFileUpload" %>
<%@ Register Assembly="Brettle.Web.NeatUpload" Namespace="Brettle.Web.NeatUpload"
    TagPrefix="Upload" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript" language="javascript">

                 function ToggleVisibility(id, type) {

                     el = document.getElementById(id);

                     if (el.style) {

                         if (type == 'on') {

                             el.style.display = 'block';

                         }

                         else {

                             el.style.display = 'none';

                         }

                     }

                     else {

                         if (type == 'on') {

                             el.display = 'block';

                         }

                         else {

                             el.display = 'none';

                         }

                     }

                 }

   </script>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager runat="server" AutoSizePanelID="p1" />
    
            <ext:Panel runat="server">
                <Toolbars>
            <ext:Toolbar ID="Toolbar3" runat="server">
                <Items>
                       
                            <ext:Form ID="form2" runat="server" ShowBorder="false" ShowHeader="false">
                                <Rows>
                                    <ext:FormRow>
                                        <Items>
                                            <ext:ContentPanel ID="ContentPanel3" runat="server" ShowHeader="false" BodyPadding="5px" CssClass=".margin-left:20px" ShowBorder="false" EnableBackgroundColor="true">
                                                 <div>
                                                    <Upload:InputFile ID="AttachFile"  runat="server" />
                                                </div>
                                            </ext:ContentPanel>
                                        </Items>
                                    </ext:FormRow>
                                </Rows>
                            </ext:Form>
                             <ext:Button ID="Button2" Text="保存文件" runat="server" OnClick="Upload_Click" ValidateForms="form2"></ext:Button>
                             <ext:ContentPanel ID="ContentPanel4" runat="server" ShowHeader="false" EnableBackgroundColor="true" ShowBorder="false">
                                <div id="Div1" style="display:none; float:left">
                                    <Upload:ProgressBar ID="ProgressBar2" runat='server' Inline="true" Width="300px" Height="20" Font-Size="Small"/>
                                </div>
                            </ext:ContentPanel>
                </Items>
            </ext:Toolbar>
        </Toolbars>
                <Items>
                    <ext:Grid runat="server" ID="Gird1" DataKeyNames="SchoollCode,schoolname" EnableCheckBoxSelect="true" EnableMultiSelect="false" EnableTextSelection="true" AllowPaging="true"  IsDatabasePaging="true" EnableRowNumber="true"
              ShowHeader="true" OnPageIndexChange="PageIndexChange" Title="学校选择">
              <Toolbars>
                <ext:Toolbar ID="Toolbar1" runat="server">
                    <Items>
                          <ext:Label ID="label1" runat="server" Text="选择地区"></ext:Label>
                            <ext:TriggerBox runat="server" ID="name"></ext:TriggerBox>
                            <ext:HiddenField runat="server" ID="districtid"></ext:HiddenField>
                            <ext:HiddenField runat="server" ID="actionbt"></ext:HiddenField>
                            <ext:ToolbarSeparator ID="ToolbarSeparator1" runat="server"></ext:ToolbarSeparator>
                            <ext:TriggerBox runat="server" Text="搜索" ID="searchbox" EmptyText="输入查询" TriggerIcon="Search" OnTriggerClick="Search_Clik"></ext:TriggerBox>
                    </Items>
                </ext:Toolbar>
              </Toolbars>
                <Columns>
                    <ext:BoundField DataField="schoolname" HeaderText="学校名称" Width="150px" />
                    <ext:BoundField DataField="cityname" HeaderText="所属城市" Width="70px" />
                    <ext:BoundField DataField="districtname" HeaderText="所属区县" Width="70px" />
                    <ext:BoundField DataField="Statute" HeaderText="学校状态" />
                    <ext:CheckBoxField DataField="Permit" SortField="Permit" HeaderText="是否授权" RenderAsStaticField="true"
                             Width="50px" />
                </Columns>
            </ext:Grid>
                </Items>
            </ext:Panel>
    
    </form>
</body>
</html>
